//
//  BasicMapAnnotation.m
//  自定义注释地图
//
//  Created by suyibaishan on 16/3/4.
//  Copyright © 2016年 suyibaishan. All rights reserved.
//

#import "BasicMapAnnotation.h"

@implementation BasicMapAnnotation

- (id)initWithLatitude:(CLLocationDegrees)latitude
          andLongitude:(CLLocationDegrees)longitude
                   tag:(int)tag
{
    if (self = [super init])
    {
        self.latitude = latitude;
        self.longitude = longitude;
        self.tag = tag;
    }
    return self;
}

- (CLLocationCoordinate2D)coordinate
{
    CLLocationCoordinate2D coordinate;
    coordinate.latitude = self.latitude;
    coordinate.longitude = self.longitude;
    return coordinate;
}

- (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate {
    self.latitude = newCoordinate.latitude;
    self.longitude = newCoordinate.longitude;
}

@end
